let option =  {
  title: {
    text: '电耗统计图',
    
  },
  tooltip: {
    trigger: 'axis',
    axisPointer: {
      type: 'cross',
      label: {
        backgroundColor: '#6a7985'
      }
    }
  },
  legend: {
    data: ['Email', 'Union Ads', 'Video Ads', 'Direct', 'Search Engine']
  },
  toolbox: {
    feature: {
      saveAsImage: {}
    }
  },
  grid: {
    left: '3%',
    right: '4%',
    bottom: '3%',
    containLabel: true
  },
  xAxis: [
    {
      type: 'category',
      boundaryGap: false,
      data: ['09:00', '12:00', '15:00', '18:00', '21:00', '00:00', '03:00']
    }
  ],
  yAxis: [
    {
      type: 'value'
    }
  ],
 
  series: [
     
  
    {
      name: '电耗',
      type: 'line',
      stack: 'Total',
      label: {
        show: true,
        position: 'top'
      },
      areaStyle: {},
      emphasis: {
        focus: 'series'
      },
      data: [400, 360, 329, 310, 240, 210, 130],
      
    }
  ]
};

export default option